package object2.package4;
//先静态,后实例,先父类,后子类
public class Child extends Parent {
    static{
        System.out.println("子类的静态代码块");
    }
    {
        System.out.println("子类的构造代码块");
    }
    public Child(){
        System.out.println("子类的构造方法");
    }

    public static void main(String[] args) {
        Child child = new Child();
    }
}
